package com.kingyun.gpsinspection.purificationservice.common.enums;

/**
 * ContentType类型,用于下载时文件时设定类型,可持续添加
 * Created by jiangjx on 2017/1/6.
 */
public enum PageContentTypeEnum {
    TYPE_1(".pdf", "application/pdf"),
    TYPE_2(".doc", "application/msword"),
    TYPE_3(".xls", "application/x-xls"),
    TYPE_4(".docx", "application/msword"),
    TYPE_5(".xlsx", "application/x-xls"),
    TYPE_6(".txt", "text/plain"),
    TYPE_7(".mp4", "video/mpeg4"),;


    /**
     * 编码
     */
    private String code;
    /**
     * 描述
     */
    private String description;

    PageContentTypeEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
